package com.chb.docter.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author: 陈海彬
 * @date: Created in 2023/12/26 20:49
 * @description:
 * @modified By:
 * @version:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("我的分页返回组件")
public class MyPage<T> {

    @ApiModelProperty("总记录数")
    private Long counts;

    @ApiModelProperty("页尺寸")
    private Long pageSize;

    @ApiModelProperty("总页数")
    private Long pages;

    @ApiModelProperty("当前页面")
    private Long page;

    @ApiModelProperty("数据集合")
    private List<T> items;
}